<?php 
$html ='<div class="entry-content">
            <h1>Account Details</h1>
            <h3>Account/Tracking Details</h3>
            <div class="clearfix">&nbsp;</div>
            <div id="account_Tab_Block" class="tabContainer">
            <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12"><a href="'.$logout_url.'" class="btn btn-sm btn-info pull-right">Log Out</a></div>
              <ul class="nav nav-tabs" role="tablist">
                <li class="active"><a href="#accountDetails" role="tab" data-toggle="tab">Account Details</a></li>
                <li><a href="#PaymentDetails" role="tab" data-toggle="tab">PaymentDetails</a></li> 
                <li><a href="#trackingDetails" role="tab" data-toggle="tab">Tracking Details</a></li> 
                
              </ul>
              
              <!-- Tab panes -->
              <div class="tab-content">';
		  # USER INFO	  
		  $html.='<div class="tab-pane active" id="accountDetails">
                <div class="form-horizontal">
            	<ul class="form-group">
								<li class="col-lg-6 colmd-6 col-sm-6 col-xs-12">
									<label class="col-lg-12 col-md-12 col-sm-12 col-xs-12">User Name :</label>
									<span class="col-lg-12 col-md-12 col-sm-12 col-xs-12">'.$fname .'</span>
								</li> 
								
								<li class="col-lg-6 colmd-6 col-sm-6 col-xs-12">
									<label class="col-lg-12 col-md-12 col-sm-12 col-xs-12">Email :</label>
									<span class="col-lg-12 col-md-12 col-sm-12 col-xs-12">'.$user_email.'</span>
								</li> 
								<li class="col-lg-6 colmd-6 col-sm-6 col-xs-12">
									<label class="col-lg-12 col-md-12 col-sm-12 col-xs-12">Full Name</label>
									<span class="col-lg-12 col-md-12 col-sm-12 col-xs-12">'.$fname.'</span>
								</li> 
								
								<li class="col-lg-6 colmd-6 col-sm-6 col-xs-12">
									<label class="col-lg-12 col-md-12 col-sm-12 col-xs-12">Address :</label>
									<span class="col-lg-12 col-md-12 col-sm-12 col-xs-12">'.$address.'</span>
								</li> 
								
								 
								<li class="col-lg-6 colmd-6 col-sm-6 col-xs-12">
									<label class="col-lg-12 col-md-12 col-sm-12 col-xs-12">City :</label>
									<span class="col-lg-12 col-md-12 col-sm-12 col-xs-12">'.$city.'</span>
								</li> 
								
								<li class="col-lg-6 colmd-6 col-sm-6 col-xs-12">
									<label class="col-lg-12 col-md-12 col-sm-12 col-xs-12">State :</label>
									<span class="col-lg-12 col-md-12 col-sm-12 col-xs-12">'.$state.'</span>
								</li> 
								
								 
								<li class="col-lg-6 colmd-6 col-sm-6 col-xs-12">
									<label class="col-lg-12 col-md-12 col-sm-12 col-xs-12">Zip :</label>
									<span class="col-lg-12 col-md-12 col-sm-12 col-xs-12">'.$zip.'</span>
								</li> 
								
								<li class="col-lg-6 colmd-6 col-sm-6 col-xs-12">
									<label class="col-lg-12 col-md-12 col-sm-12 col-xs-12">Phone :</label>
									<span class="col-lg-12 col-md-12 col-sm-12 col-xs-12">'.$address.'</span>
								</li> 
							</ul>
           		</div>
                </div>';
		  
		  # PAYMENT	
		  $html.='         
                      <!-- PAYMENT -->  
                        <div class="tab-pane" id="PaymentDetails">
                            
                             <div class="clearfix"></div>
                    <div class="table-responsive">
                        <table class="table table-striped table-bordered table-hover"> 
						<tr>
                                <th class="col-lg-2 col-md-2 text-left">Order Id</th>
								<th class="col-lg-2 col-md-2 text-center">Price</th>
                                <th class="col-lg-2 col-md-2 text-center">Status</th>
                                <th class="col-lg-2 col-md-3 text-center">Time</th>
								<th class="col-lg-2 col-md-3 text-center">Notes</th>
                            </tr>';
						  $query_payment = mysql_query("SELECT * FROM wp_spec_checkout WHERE user_id=".$user_id."");
						  while ($row = mysql_fetch_assoc($query_payment))
							{
								$payment_id       			 = $row['id'];
								$package_id       			 = $row['package_ids'];
								$total_amount	       		 = $row['total_amount'];
								$payment_status       		 = $objPayment->getPaymentStatus($row['payment_status']);
								$time       			 	 = $row['time'];
				
							$html.=' <tr>
                                <td class="col-lg-2 col-md-2 text-left">#'.$payment_id .'</td>
                                <td class="col-lg-2 col-md-2 text-center">$'.$total_amount.'.00</td>
                                <td class="col-lg-2 col-md-2 text-left">'.$payment_status.' </td>
								<td class="col-lg-2 col-md-3 text-left">'.$time.' </td>
								<td class="col-lg-2 col-md-3 text-left"> </td>
                            </tr>';
							}
                   $html.='</table>
                    </div>
                    <div class="clearfix">&nbsp;</div>
                        </div>
                   <!-- PAYMENT -->   ';   
                        
           $html.='     
                 <!-- Track -->
                        <div class="tab-pane" id="trackingDetails">
                            
                             <div class="clearfix"></div>
                    <div class="table-responsive">
                        <table class="table table-striped table-bordered table-hover"> 
                         <tr>
                                <th class="col-lg-2 col-md-2 text-left">Order ID</th>
                                <th class="col-lg-3 col-md-3 text-center">Status</th>
                                <th class="col-lg-7 col-md-7 text-center">Notes</th>
                            </tr>';
							
						$query_trac = mysql_query("SELECT wp_spec_order_trac.order_id,
													   		   wp_spec_order_trac.track_status,
															   wp_spec_order_trac.track_message
														FROM wp_spec_order_trac 
														INNER JOIN  wp_spec_checkout 
														ON wp_spec_order_trac.order_id = wp_spec_checkout.id
														WHERE wp_spec_checkout.user_id=".$user_id."");
						  while ($row = mysql_fetch_assoc($query_trac))
							{
								$order_id					 = $row['order_id'];
								$track_status       		 = $objTrack->getTrackStatus($row['track_status']);
								$track_message	       		 = $row['track_message'];
								//$payment_status       		 = $objPayment->getPaymentStatus($row['payment_status']);
								//$time       			 	 = $row['time'];
				
							$html.='  <tr>
                                <td class="col-lg-2 col-md-2 text-left">#'.$order_id.'</td>
                                <td class="col-lg-3 col-md-3 text-center">'.$track_status.'</td>
                                <td class="col-lg-7 col-md-7 text-left">'.$track_message.'. </td>
                            </tr>';
							}
							
         
          $html.='               </table>
                        
                    </div>
                    
                    <div class="clearfix">&nbsp;</div>
                            
                        </div>
                      <!-- Track -->   ';
					  
               
                        
                        
                        
          $html.='                
                        
              </div>
            </div>
            
            
          </div>';?>
		  